﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WucCompaign.ascx.cs" Inherits="WucCompaign" %>
<style type="text/css">


* {
	padding:0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
}

        .auto-style6 {
        width: 740px;
    }

        .auto-style7 {
        height: 26px;
    }

        </style>

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:MultiView ID="MultiView2" runat="server" ActiveViewIndex="0">
            <asp:View ID="View3" runat="server">
                <table align="center" class="auto-style1">
                    <tr>
                        <td class="auto-style2" style="text-align: center">
                            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Impact" Font-Size="XX-Large" Text="Search For Compaign:"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style2" style="text-align: center">
                            <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Large" Text="Search By:"></asp:Label>
                    <br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButtonList ID="RBLSearch" runat="server" RepeatDirection="Horizontal" Width="363px">
                                <asp:ListItem Selected="True" Value="CODE">Compaign Code</asp:ListItem>
                                <asp:ListItem Value="PLACE">Place</asp:ListItem>
                                <asp:ListItem Value="TYPE">Type</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style5">
                            <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Medium" Text="Value To Search:"></asp:Label>
                            &nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtSearch" runat="server" Width="158px"></asp:TextBox>
                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtSearch" ErrorMessage="Invalid Value Of Search ." ForeColor="Red" ValidationExpression="[a-zA-Z0-9]*">*</asp:RegularExpressionValidator>
                            &nbsp;&nbsp;
                            <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="Search" Width="100px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7" style="text-align: left">
                            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ForeColor="Red" />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7" style="text-align: center">
                            <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="AddNew" />
                            <asp:Button ID="btnUpdate" runat="server" Enabled="False" OnClick="btnUpdate_Click" Text="Update" />
                            <asp:Button ID="btnRemove" runat="server" Enabled="False" OnClick="btnRemove_Click" Text="Remove" />
                    <br />
                    <br />
                            <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                    <br />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7" style="text-align: left">
                            <asp:GridView ID="grdv" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="grdv_SelectedIndexChanged" Width="401px">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:ButtonField ButtonType="Button" CommandName="Select" HeaderText="Selct" ShowHeader="True" Text="&lt;&lt;&lt;" />
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </asp:View>
    <br />
            <asp:View ID="View4" runat="server">
                <table align="center" class="auto-style6">
                    <tr>
                        <td colspan="2" style="text-align: center">
                            <asp:Label ID="lblTitle" runat="server" Font-Bold="True" Font-Names="Impact" Font-Size="XX-Large" Text="Add Compaign:"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7">
                            <asp:Label ID="Label4" runat="server" Text="Compaign Code:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCode" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCode" ErrorMessage="Compaign Code Is Reuired ." ValidationGroup="G1" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtCode" Display="Dynamic" ErrorMessage="Compaign Should be Number (example : 1)" ForeColor="Red" ValidationExpression="[0-9]+" ValidationGroup="G1"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7">
                            <asp:Label ID="Label5" runat="server" Text="Begin Date:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtBdate" runat="server" TextMode="Date"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtBdate" ErrorMessage="Begin Date Is Required ." ValidationGroup="G1" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7">
                            <asp:Label ID="Label6" runat="server" Text="End Date:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtEdate" runat="server" TextMode="Date"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtEdate" ErrorMessage="End Date Is Required ." ValidationGroup="G1" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center">
                            <asp:Label ID="Label7" runat="server" style="text-align: right" Text="Type:"></asp:Label>
                        </td>
                        <td>
                            <asp:RadioButtonList ID="RBLType" runat="server" RepeatDirection="Horizontal" Width="363px">
                                <asp:ListItem Selected="True" Value="Internal">Internal Compaign</asp:ListItem>
                                <asp:ListItem Value="External">External Compaign</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style10">
                            <asp:Label ID="Label8" runat="server" Text="Center:"></asp:Label>
                        </td>
                        <td class="auto-style11">
                            <asp:DropDownList ID="DDlCenter" runat="server" Height="38px" Width="164px">
                                <asp:ListItem Selected="True">Damanhour</asp:ListItem>
                                <asp:ListItem>Bani Swaf</asp:ListItem>
                                <asp:ListItem>Tanta</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style14">
                            <asp:Label ID="Label9" runat="server" Text="Place:"></asp:Label>
                        </td>
                        <td class="auto-style15">
                            <asp:DropDownList ID="DDLPlace" runat="server" Height="44px" Width="158px">
                                <asp:ListItem>Doctor</asp:ListItem>
                                <asp:ListItem Selected="True" Value="Receptionist">Receptionist</asp:ListItem>
                                <asp:ListItem>Analyser</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style16">
                            <asp:Label ID="Label10" runat="server" Text="Select Comp Emps"></asp:Label>
                        </td>
                        <td class="auto-style17">&nbsp;<asp:Label ID="Label11" runat="server" Text="Select Doctor:"></asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:DropDownList ID="DoctorDDl" runat="server" Height="33px" Width="94px">
                            </asp:DropDownList>
                            &nbsp;
                            <br />
                            <br />
                            <asp:Label ID="Label12" runat="server" Text="Select Recieptionist:"></asp:Label>
                            &nbsp;
                            <asp:DropDownList ID="RecieptionistDDl" runat="server" Height="34px" Width="95px">
                            </asp:DropDownList>
                            &nbsp;&nbsp;&nbsp;&nbsp;<br /> </td>
                    </tr>
                    <tr>
                        <td class="auto-style7"></td>
                        <td class="auto-style7">
                            <asp:Label ID="Label13" runat="server" Text="Select Analyser : "></asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:DropDownList ID="AnalyserDDl" runat="server" Height="29px" Width="98px">
                            </asp:DropDownList>
                            &nbsp;
                            <br />
                            <br />
                            <asp:Label ID="Label14" runat="server" Text="                 Select Nurse : "></asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:DropDownList ID="NurseDDL" runat="server" Height="36px" Width="100px">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7" colspan="2">
                            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Save" ValidationGroup="G1" />
                            <asp:Button ID="btnCancel" runat="server" OnClick="btnCancel_Click" Text="Cancel" />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7">&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </asp:View>
    <br />
        </asp:MultiView>
    </ContentTemplate>
</asp:UpdatePanel>




